package com.mazaiting.manager.config.mp.annos;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 部门权限
 * <a href="https://gitee.com/baomidou/mybatis-plus/issues/I37I90">...</a>
 * @author mazaiting
 * @create_time 2022/9/24 19:08
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface DeptPermission {

    /**
     * 数据权限 {@link com.baomidou.mybatisplus.extension.plugins.inner.DataPermissionInterceptor}
     * 部门表的别名
     */
    @AliasFor("tableName")
    String value() default "";

    /**
     * 数据权限 {@link com.baomidou.mybatisplus.extension.plugins.inner.DataPermissionInterceptor}
     * 部门表的别名
     */
    @AliasFor("value")
    String tableName() default "";

}
